﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Mailer.Model.Repositories;

namespace Mailer.Controllers
{
	[HandleError]
	public class HomeController : Controller
	{
		public ActionResult Index()
		{
			List<Mailer.Model.Types.Application> apps = ApplicationRepository.GetApplicationsForUser(Utilities.GetUserID(this));
			ViewData["Apps"] = apps;	

			return View();
		}

		public ActionResult About()
		{
			return View();
		}
	}
}
